<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<jsp:include page="../jqgrid.jsp"></jsp:include>
</head>
<script type="text/javascript">
	$(document).ready(
			function() {
				jQuery("#equipmentTypelist").jqGrid(
						{
							url : 'queryEquipmentType.action',
							autowidth : true,
							datatype : "json",
							colNames : [ 'id','名称'],
							colModel : [ {
								name : 'id',
								index : 'id',
								width : 20,
								align : "center",
								editable : false,
								hidden:false
							}, {
								name : 'typeName',
								index : 'typeName',
								align : "center",
								width : 50,
								editable : true,
								editrules:{
									required:true
								},
							}],
							rowNum : 10,
							rowList : [ 10, 20, 30 ],
							pager : '#equipmentTypegridPager',
							sortname : 'id',
							viewrecords : true,
							jsonReader : {
								repeatitems : false
							},
							sortorder : "desc",
							caption : "设备列表",
							editurl : "editEquipmentType.action",
						});
				jQuery("#equipmentTypelist").jqGrid('navGrid',
						'#equipmentTypegridPager', {
							edit : true,
							add : true,
							del : true
						}, {}, {}, {}, {
							multipleSearch : true
						});
	});
</script>
<body>
	<div align="center">
		<table id="equipmentTypelist"></table>
		<div id="equipmentTypegridPager"></div>
	</div>
</body>
</html>